package cn.cocho.android.mct.comp.image;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.view.Display;

import cn.cocho.android.mct.R;
import cn.cocho.android.mc.activity.BaseActivity;
import cn.cocho.android.mc.comp.image.ZoomImageView;

public class ZoomImageViewTest extends BaseActivity{
	
	@Override
	public void init(){
		setContentView(R.layout.zoom_image_view);
		xmlCreate();
	}

	private void xmlCreate(){
		Bitmap btm=BitmapFactory.decodeResource(getResources(), R.drawable.image_view);
		Display display=getWindowManager().getDefaultDisplay();
		ZoomImageView img=(ZoomImageView)findViewById(R.id.zoom_image_view);
		img.setImageBtm(btm, display);
	}
}
